package com.songshijun.mapper;

import com.songshijun.entity.ApprovalLevel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.songshijun.entity.Role;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 宋时俊
 * @since 2022-01-19
 */
@Repository
public interface ApprovalLevelMapper extends BaseMapper<ApprovalLevel> {

    List<ApprovalLevel> getFlowKeyLevel(@Param("flowKey") String flowKey);

    List<Role> getRoleFlowKeyLevel(@Param("flowKey") String flowKey, @Param("approveLevel") Integer approveLevel);
}
